$(document).ready(function(){
	var validator = $("#frmChangeEmail").validate({
		errorElement:'div',
		rules: {
			email: {
				required: true,
				email: true,
				remote:SITEROOT+'/admin/settings/checkemailexist.php'
			
			},
			password: {
				required: true
			}
		},
		messages: {
			email: {
				required: "Enter your email address.",
				email:"Please enter valid email address.",
				remote: jQuery.format("Email address already in use")	
			},	
			password: {
				required: "Enter your current password"
			}
		}
	});
});